//window.onload = function() {
//}
var iconsousuo = document.querySelector(".sg_search");
console.log(iconsousuo);
iconsousuo.addEventListener("click", function() {
	search.style.transform = "translateY(0)";
	search.style.transition = "all 1s";
});

var search = document.querySelector(".search_web");

var search_close = document.querySelector(".icon-guanbi");
search_close.addEventListener("click", function() {
	search.style.transform = "translateY(100%)";
	search.style.transition = "all 1s";
});

var searhnav = document.querySelector(".search_nav");
var nav = document.querySelector(".sg_nav");
console.log(nav);
nav.addEventListener("click", function() {
	searhnav.style.transform = "translateX(0)";
	searhnav.style.transition = "all 1s";
});

var lg_close = document.querySelector(".lg_close");
lg_close.addEventListener("click", function() {
	searhnav.style.transform = "translateX(100%)";
	searhnav.style.transition = "all 1s";
});


